package com.lvyq.myplayer.presenter.impl

import com.lvyq.myplayer.model.area.MvAreaBean
import com.lvyq.myplayer.net.ResponseHandler
import com.lvyq.myplayer.net.home.AreaRequest
import com.lvyq.myplayer.presenter.inter.MvPresenter
import com.lvyq.myplayer.view.MvView

/**
 * 文件描述：MvPresenterImpl
 * 作者：lvyq
 * 创建时间：2025-02-25
 * 修改时间：2025-02-25
 */
class MvPresenterImpl(var view:MvView): MvPresenter ,ResponseHandler<MvAreaBean>{


    override fun onError(type: Int, msg: String) {
        view.onError(msg)
    }

    override fun onSuccess(type: Int, result: MvAreaBean) {
        view.onSuccess(result)
    }

    override fun loadDatas() {
        AreaRequest(this).excute()
    }

}